<?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');
//$url="http://localhost:1970/index.php";
$b = new sfTestBrowser();


//   $browser->post('sfGuardAuth/signin',array('signin[username]' => 'admin','signin[password]'=>'1q2w3e'))->
//    checkResponseElement('body', '/Wellcome/');

$b->get('mainpage/index')->
    setField('signin[username]', 'man')->
    setField('signin[password]', '111111')->
    click('Sign in!')->
    followRedirect()->
    get('interest/me')->
    checkResponseElement('body', '/Who is interested in me/');
?>